# 将字符串"8*y*cali*china**it*soft*linux*python"里的所有的`*`号抽取出来放到最前面，里面的字符串保持顺序不变

str = "8*y*cali*china**it*soft*linux*python"
mystr = ""
i = 0
for item in str:
    if item == '*':
        i = i + 1
        str = str.replace("*", "")
str = "*"*i + str
print(str)
